git pull
pid=`ps -ef|grep postgres|grep "\-D"|grep -v grep|awk '{print $2}'`
if [ -z "$pid" ]; then
   echo "no process exist."
else
   pg_ctl -D /opt/installpg/pgdata -l logfile stop
fi
./configure --enable-debug --enable-cassert --prefix=/opt/installpg --without-icu  --without-readline --without-zlib
make && make install

sleep 3

pg_ctl -D /opt/installpg/pgdata -l logfile start